import request from '@/utils/request'

// 获取登录接口
export const login = (data) => request.post('/api/user-service/user/login', data)

// 获取用户信息
export const getUser = (id) => request.get('/api/user-service/user/:id', id)

// 获取工单数据接口
export const workOrder = () => request.get('/api/task-service/task/taskReportInfo')

// 获取日期接口
export const dateTime = () => request.get('/api/order-service/report/orderCount')

// 商品热榜接口
export const goodsList = (data) => request.get(`/api/order-service/report/skuTop/10/${data.firstDate}/${data.nowDate}`)

// 销售统计销售额接口
export const orderAmount = (data) => request.get(`/api/order-service/report/orderAmount?start=${data.firstDate + '+00:00:00'}&end=${data.nowDate + '+23:59:59'}`)

// 销售统计订单量接口
export const orderCount = (data) => request.get(`/api/order-service/report/orderCount?start=${data.firstDate + '+00:00:00'}&end=${data.nowDate + '+23:59:59'}`)

// 获取合作商点位数接口
export const workTogether = () => request.get('/api/vm-service/node/nodeCollect')

// 获取点数接口
export const point = () => request.get('/api/vm-service/node/count')

// 获取合作商
export const togetherNumber = () => request.get('/api/user-service/partner/count')
